// 获取活动数据页面-渠道数据
import Mock from 'mockjs2'
import { builder } from '@/mock/util'

// const gameChannelDataNon = () => {
//   return builder([
//     { 'name': 'yuxiang', 'joinCount': 0, 'fissionRate': '0.00', 'shareRate': '0.00', 'keepRate': '0.00' },
//     { 'name': 'yangjing', 'joinCount': 0, 'fissionRate': '0.00', 'shareRate': '0.00', 'keepRate': '0.00' }
//   ])
// }

const gameChannelData2 = () => {
  return builder([
    { 'name': 'yuxiang', 'joinCount': 5, 'fissionRate': '10.00', 'shareRate': '23.00', 'keepRate': '90.00' },
    { 'name': 'yangjing', 'joinCount': 4, 'fissionRate': '20.00', 'shareRate': '32.00', 'keepRate': '10.00' }
  ])
}

// Mock.mock(/\/qw\/gameTaskData\/gameChannelData/, 'get', gameChannelData)
Mock.mock(/\/qw\/gameTaskData\/gameChannelData/, 'get', gameChannelData2)
